<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //写一个函数，实现反转任意数组
        function giao(arguments) {
            var a = ''
            for (i = arguments.length-1 ; i >=0; i--) {
                a = a + arguments[i] + '-'
            }
            return a
        }
        console.log(giao([1,2,3,4,5,]))
    </script>
</body>
</html>